<?php
/**
 * The Component class
 */
abstract class Component
{	
	/**
	 * The view object
	 * 
	 * @var object
	 */
	public $view;

	/**
	 * Do something after subClass::__construct().
	 */
	public final function afterConstruct()
	{
		if (null === $this->view)
		{
			$this->view = new View();
		}
		$this->view->afterConstruct();
	}
}
